package com.oxygen.design.mediator;

import com.oxygen.design.mediator.bean.User;

/**
 * @author wangjie
 * @title: MediatorPatternDemo
 * @description: TODO
 * @date 2022/3/12 10:57 PM
 **/
public class MediatorPatternDemo {

    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
    }

}
